import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		ws: null// websocket对象,
	},
	mutations: {
		SET_WS(state, ws) { // 设置websocket对象
			state.ws = ws
		}
	},
	
})

export default store